#!/bin/sh

set -eu

_status=${JIA_PROMPT_status-0}

if [ "$_status" -ne 0 ]; then
  echo 'snippet: open'
  echo 'color: red'
  echo "text: exit ${_status}"
  echo 'snippet: close'
fi
